Skip to main content
Version: legacy

Quick Reply Message

This message type provides the recipient with up to three buttons, which can be pressed. A button press causes a response to be sent back in a callback.

ObjectDescription
headerOptional.

For button interactive messages, you can use the following header types: text, video, image or document.

Once you select your type, add the corresponding objects/fields with more information:
- For video, image, and document types: Add a media object.
- For text type: Add a text field with the desired content.

Example:

bodyRequired.
footerOptional.
actionRequired.

You must add at least one button, and include type, title, and id for your buttons. You cannot add more than 3 buttons. Maximun of 20 characters for title. You cannot have leading or trailing spaces when setting the ID.

Payload

{
"messages": [
{
"sender": "9180XXXXXXXX",
"to": "9198XXXXXXXX",
"messageId": "",
"transactionId": "",
"callbackDlrUrl": "http://xxx.com",
"channel": "wa",
"type": "interactive",
"interactive": {
"type": "button",
"header": {
"type": "video",
"video": {
"link": "www.youtube.com",
"contentType": "video/mp4"
}
},
"body": {
"text": "your-text-body-content"
},
"footer": {
"text": "your-text-footer-content"
},
"action": {
"buttons": [
{
"type": "reply",
"reply": {
"id": "id-1",
"title": "First Buttons Title"
}
},
{
"type": "reply",
"reply": {
"id": "id-2",
"title": "Second Buttons Title"
}
}
]
}
}
}
],
"responseType": "json"
}

Note : Calback URL is a optional paramter . Please use when you want to change the default URL(configured through smartta). It will only chnage the domain name othere paratemters will be same as configurated in smartta.